// 引入mock
import Mock from 'mockjs'
// 引入json文件
import banner from './banner.json'
import floor from './floor.json'
import address from './address.json'
// 通过mock去模拟本地数据接口
Mock.mock("/mock-api/banner", "get", () => {
  return {
    code: 200,
    // 返回data就是banner的json数组
    data: banner,
  };
});
Mock.mock("/mock-api/floor", "get", () => {
  return {
    code: 200,
    // 返回data就是banner的json数组
    data: floor,
  };
});
Mock.mock("/mock-api/address", "get", () => {
  return {
    code: 200,
    // 返回data就是banner的json数组
    data: address,
  };
});